package com.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.domain.dto.UserSessionDto;
import com.domain.entity.User;
import com.domain.entity.UserSession;

import java.util.Date;
import java.util.List;

/**
* @author Administrator
* @description 针对表【user_session】的数据库操作Service
* @createDate 2024-05-24 16:35:46
*/
public interface UserSessionService extends IService<UserSession> {
    /**
     * 创建一个用户session
     *
     * @param sessionId
     * @param loginUser
     * @param chatType
     * @param staicky
     * @param deleteRecordTime
     * @param lastSelectTime
     * @return
     */
    public UserSession createUserSession(Long sessionId, User loginUser, Integer chatType, Integer staicky, long deleteRecordTime, long lastSelectTime) ;

    /**
     * 获取所有会话
     *
     * @param loginUser
     * @return
     */
    List<UserSessionDto> getAllSession(User loginUser);
}
